<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>10_vertical-align</title>
    <style>
        div {
            font-size: 100px;
            background-color: skyblue;
            height: 300px;
        }
        span {
            font-size: 40px;
            background-color: orange;
            vertical-align: bottom; /* middle */
            
        }
        img {
            height: 30px;
            vertical-align: top;
        }
        .test {
            width: 400px;
            height: 400px;
            background-color: green;
        }
        .si {
            vertical-align: middle;
        }
    </style>
</head>
<body>
    <div>
        atguigu尚硅谷x<span>x前端</span>
    </div>
    <hr>
    <div>
        atguigu尚硅谷x<img src="../images/证件照.jpg">
    </div>
    <hr>
    <div class="test">123</div>
    <!-- 1-vertical-align 只能控制子元素 -->
    <!-- 2-vertical-align 对块级元素不起作用 -->
     <hr>
     <table border="1" cellspacing="0">
        <caption>人员信息</caption>
        <thead>
            <tr>
                <th>姓名</th>
                <th>年龄</th>
                <th>性别</th>
            </tr>
        </thead>
        <tbody>
            <tr height="200">
                <td valign="top">张三</td>
                <td>18</td>
                <td>男</td>
            </tr>
            <tr height="200">
                <td class="si">李四</td>
                <td>20</td>
                <td>女</td>
            </tr>
        </tbody>
     </table>
</body>
</html>